<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechat_user_admin', function (Blueprint $table) {
            $table->id();
            $table->string('corp_id', 50)->default('')->comment('企业ID');
            $table->string('user_id', 50)->default('')->comment('用户ID');
            $table->integer('admin_id')->default(0)->comment('管理员ID');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wechat_user_admin');
    }
};
